<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编译环境</title>
</head><body>#sun java<br/>
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"<br/>
$ sudo apt-get update<br/>
$ sudo apt-get install sun-java6-jdk<br/>
#config java<br/>
$sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk6/bin/java 300<br/>
$sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk6/bin/javac 300<br/>
$sudo update-alternatives --config java<br/>
#libs.<br/>
$ sudo apt-get install git gnupg flex bison gperf build-essential \<br/>
&nbsp; zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br/>
&nbsp; libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br/>
&nbsp; libgl1-mesa-dev g++-multilib mingw32 tofrodos \<br/>
&nbsp; python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br/>
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so<br/>
#add usb jurisdiction<br/>
#/etc/udev/rules.d/51-android.rules<br/>
SUBSYSTEM=="usb", ATTRS{idVendor}=="2207", ATTRS{idProduct}=="0006", MODE="0666",OWNER="marco'<br/>
</body></html>